package cn.tedu.tnt_sky.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class AdminLoginDTO {
    @NotBlank(message = "用户名不能为空白|空字符串|null")
    @Size(min = 6, max = 15, message = "用户名必须在6-15位之间")
    @ApiModelProperty("管理员登录账号")
    private String username;
    @NotBlank(message = "用户名不能为空白|空字符串|null")
    @Size(min = 6, max = 15, message = "用户名必须在6-15位之间")
    @ApiModelProperty("管理员登录密码")
    private String password;
}
